package collector.app.nexd.com.singlecollection.util;

import android.app.ProgressDialog;
import android.content.Context;

import collector.app.nexd.com.singlecollection.R;

/**
 * Created by xun on 2016/8/8.
 */
public class ProgressUtil {
    private static ProgressDialog progressDialog;

    public static ProgressDialog createProgressDialog(Context context) {
        progressDialog = new ProgressDialog(context);
        progressDialog.setMessage(context.getString(R.string.msg_loading));
        progressDialog.setCanceledOnTouchOutside(false);
        progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        return progressDialog;
    }


}
